//
//  HZUrl.h
//  HZTC_Stock
//
//  Created by MayerF on 17/3/16.
//  Copyright © 2017年 MayerF. All rights reserved.
//

#ifndef HZUrl_h
#define HZUrl_h

typedef NS_ENUM(NSInteger, kHZApiType) {
    kHZApi_Own_Type = 1,     //自选股
    kHZApi_BlockIndex_Type,  //板块okex
    kHZApi_ZhangFuTop_Type,  //涨幅榜
    kHZApi_HuanShouTop_Type, //换手率榜
    kHZApi_LiangBiTop_Type,  //量比榜
    kHZApi_GaiNian_Type,     //概念板块
    kHZApi_HangYe_Type,      //行业板块
    kHZApi_Zone_Type,        //地区板块
    kHZApi_ZhangFuTop_CY_Type,  //创业涨幅榜
    kHZApi_HuanShouTop_CY_Type, //创业换手率榜
    kHZApi_LiangBiTop_CY_Type,  //创业量比榜
    kHZApi_HuGangTong_Type,     //沪港通
    kHZApi_ShenGangTong_Type,   //深港通
    kHZApi_HuGuTong_Type,       //沪股通
    kHZApi_ShenGuTong_Type,     //深股通
    kHZApi_Min_Type,            //分时
    kHZApi_MinPrice_Type,       //报价
    kHZApi_MinDetail_Type,      //明细
    kHZApi_KLine_Type,          //k线
    kHZApi_IndexZhangFuTop_Type,//各大盘okex下的涨幅榜
    kHZApi_IndexDieFuTop_Type,  //各大盘okex下的跌幅榜
    kHZApi_IndexHuanShouTop_Type,//各大盘okex下的换手率榜
    kHZApi_BlockList_Type,      //板块列表   //暂无用到
    kHZApi_BlockDetailList_Type,//板块详情列表
};

////////////////////////////发布模式/////////////////////////
#ifdef DEBUG

#if TARGET_IPHONE_SIMULATOR //模拟器http://policy.51tongcai.com

#define kAPIHost @"https://app.hexinsec.com/client/api/" //内网测试地址
#define kAPIRegisterUrl @"https://www.51tongcai.com/policy/help/html/register-agree.html" //注册协议
#define kAPIStockInfoUrl @"https://www.51tongcai.com/f10/f10.html?code="
#define kAPIPeiziHost @"http://policy.51tongcai.com/client/eamapi"

#elif TARGET_OS_IPHONE     //真机
#define kAPIHost @"https://app.hexinsec.com/client/api/" //外网测试地址
#define kAPIRegisterUrl @"https://www.51tongcai.com/policy/help/html/register-agree.html" //注册协议
#define kAPIStockInfoUrl @"https://www.51tongcai.com/f10/f10.html?code="
#define kAPIPeiziHost @"http://policy.51tongcai.com/client/eamapi"
#endif

#else //Release
#define kAPIHost @"https://app.hexinsec.com/client/api/" //发布地址
#define kAPIRegisterUrl @"https://www.51tongcai.com/policy/help/html/register-agree.html" //注册协议
#define kAPIStockInfoUrl @"https://www.51tongcai.com/f10/f10.html?code="
#define kAPIPeiziHost @"http://policy.51tongcai.com/client/eamapi"
#endif
/////////////////////////////////////////////////////

static NSString* const kUrl_BDZQ = @"http://211.139.150.60/bdzq.json";//标的证券
/*请求功能号key*/
#define kAPIFuctionKey @"api_fuction"

///////////////////////////////////// 版本号 ////////////////////////////////////
#define kAppVersion @"1.0.0"
///////////////////////////////////// 版本号 ////////////////////////////////////

#endif /* HZUrl_h */


/* 测试账号
 账号hjcs01，密码888888
 hjcs01  正常
 hxtg008  未签约
 hxtg007   待审核
 */
